-- GENERATED SPELL FOR [Azure Mage Slayer] --


function spell0_31010(pUnit, Event) --@Arcane Empowerment,Self--
pUnit:FullCastSpellOnTarget(58469,pUnit)
pUnit:RegisterEvent('Sorts_31010', 10251, 1)
end

function Sorts_31010(pUnit, Event)
local choix_sorts_31010 = math.random(0, 0)
if choix_sorts_31010 == 0 then
pUnit:RegisterEvent('spell0_31010', 1, 1)
end
end

function mob31010_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31010', math.random(1500, 3000), 1)
end

function mob31010_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31010_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31010_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31010, 1, 'mob31010_Action')
RegisterUnitEvent(31010, 2, 'mob31010_Leave')
RegisterUnitEvent(31010, 3, 'mob31010_Kill')
RegisterUnitEvent(31010, 4, 'mob31010_Die')
